<%--
  Created by IntelliJ IDEA.
  User: baifc
  Date: 2019/5/9
  Time: 22:25
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" session="false" %>
<%--代码手动开启el--%>
<%@ page isELIgnored="false" %>
<html>
<head>
    <title>Spittr</title>
</head>
<body>
    <h1>Recent Spittles</h1>
    <c:forEach items="${spittleList}" var="spittle">
        <li id="spittle_<c:out value="${spittle.id}"/>">
            <div>
                <c:out value="${spittle.message}"/>
            </div>
            <div>
                <span class="spittleTime"><c:out value="${spittle.time}"/></span>
                <span class="spittleLocation">(<c:out value="${spittle.latitude}" />,<c:out value="${spittle.longitude}"/>)</span>
            </div>
        </li>

    </c:forEach>

</body>
</html>
